#!/bin/bash


git config user.email "windowhero@sina.com"
git config user.name "windowhero"
git config pull.rebase false
commit_count=`git log | grep '^commit' | wc -l`
[ $commit_count -gt 2 ] || break
EDITOR=vim git rebase -i HEAD~$((commit_count-1))
